// Definition of a view for icons in models
// Copyright 2005 (C) Ralph Thomas

#ifndef MISSION_VIEW_ICON_H
#define MISSION_VIEW_ICON_H

#include <factory.hpp>

namespace view {
	//
	/// The icon view widget can draw a model's icon in a variety of
	/// sizes. The icon must be in the sheet, and is bound using "bind",
	/// the "size" parameter specifies the size and may be 16, 22, 32,
	/// 48 or 128.
	///
	/// \param	parameters	a dictionary of parameters for the new
	///				icon-view widget.
	/// \param	parent		the parent of the icon-view widget.
	/// \param	token		the factory token containing everything
	///				else for creating the widget.
	/// \return	a widget_node_t containing the new icon-view widget.
	//
	adobe::widget_node_t icon_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token );
};

#endif

